package tjs.study.notes.base.arthas;

/**
 * Created by Nicky.Tang on 2022/9/8 下午5:47
 *
 * @since 02.12.10
 */
public class ArthasTest {
    public void doTest(int i) throws Exception {
        System.out.println(2222);
        Thread.currentThread().sleep(2000);
//        DoTestOfSpringLoad.writeBytes("ArthasTest" + i, javassist.ClassPool.getDefault().get("tjs.study.notes.dotest.jvm.ArthasTest").toBytecode());
    }
    public void doTest2(int i) throws Exception {
        System.out.println(3333);
        Thread.currentThread().sleep(500);
//        DoTestOfSpringLoad.writeBytes("ArthasTest" + i, javassist.ClassPool.getDefault().get("tjs.study.notes.dotest.jvm.ArthasTest").toBytecode());
    }

    public static void main(String[] args) throws Exception {
        int i = 0;
//        DoTestOfSpringLoad.writeBytes("ArthasTest", ClassPool.getDefault().get("tjs.study.notes.dotest.jvm.ArthasTest").toBytecode());
        while (true) {
            ArthasTest arthasTest = new ArthasTest();
            arthasTest.doTest(i);
            arthasTest.doTest2(i);
            i++;
        }
    }
}
